package com.zhang.cloud.controller;

import com.zhang.cloud.service.FeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class FeignController {
    @Resource
    private FeignService feignService;

    @RequestMapping(value = "/pay/feign")
    public String getServe()
    {
        //openfeign客户端默认等待1秒钟
        return feignService.paymentConsul();
    }
}
